/*
 ============================================================================
 Name		: Vibrate.cpp
 Author	  : jimmy54
 Version	 : 1.0
 Copyright   : welcome to my weibo:www.weibo.com/jimmy54
 Description : CVibrate implementation
 ============================================================================
 */

#include "Vibrate.h"

#include <hwrmvibra.h>  // CHWRMVibra, HWRMVibraClient.lib
 
void Vibrate::DoVibrateL(TInt aDuration)
	{
	CHWRMVibra* vibra = CHWRMVibra::NewLC();

	if (CHWRMVibra::EVibraModeON == vibra->VibraSettings()) // get vibration setting in the user profile
		{
		vibra->StartVibraL(aDuration);
		}

	CleanupStack::PopAndDestroy(vibra);
	}
